package com.banmao.algorithm.No101To200.No106;

import com.alibaba.fastjson.JSON;

public class Answer {

    public static void main(String[] args) {

        CarlSolution solution = new CarlSolution();

        //TreeNode root = new TreeNode(3, new TreeNode(9), new TreeNode(20, new TreeNode(15), new TreeNode(7)));

        int[] inorder = {9, 3, 15, 20, 7};
        int[] postorder = {9,15,7,20,3};

        TreeNode treeNode = solution.buildTree(inorder, postorder);

        System.out.println(JSON.toJSONString(treeNode));

    }

}
